LIBUSB_SRC_DIR = @top_srcdir@/libusb
EXCLUDED_FILES = hotplug.h libusbi.h version.h version_nano.h
LIBUSB_SRC = $(wildcard $(LIBUSB_SRC_DIR)/*.c) $(wildcard $(LIBUSB_SRC_DIR)/*.h)
LIBUSB_DOC_SRC = $(filter-out $(addprefix $(LIBUSB_SRC_DIR)/,$(EXCLUDED_FILES)),$(LIBUSB_SRC))

docs: @DOXYGEN_HTMLDIR@

@DOXYGEN_HTMLDIR@: doxygen.cfg libusb.png $(LIBUSB_DOC_SRC)
	doxygen $<

docs-upload:
	scp -r @DOXYGEN_HTMLDIR@ web.sourceforge.net:/home/project-web/libusb/htdocs

clean:
	rm -rf @DOXYGEN_HTMLDIR@
